<template>
  <el-dialog :visible.sync="isShow" append-to-body fullscreen>
    <v-chart :option="options" :autoresize="true" style="height:600px;width:100%;"></v-chart>
    <div slot="footer" class="dialog-footer align-center">
      <el-button type="primary" @click="isShow = false">关闭</el-button>
    </div>
  </el-dialog>
</template>

<script>
export default {
  data(){
    return{
      isShow: false,
      options: {}
    }
  },
  methods:{
    init(data){
      this.isShow = true;
      this.options = data;
    }
  }

}
</script>